package com.ruoyi.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 组卷对象 paper
 * 
 * @author ruoyi
 * @date 2020-11-19
 */
public class Paper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 总分 */
    @Excel(name = "总分")
    private Double score;

    /** 合格分 */
    @Excel(name = "合格分")
    private Double standardScore;

    /** 题数 */
    @Excel(name = "题数")
    private Long questionCount;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDt;

    /** 进度]0:编制中，10：发布中，1000：已完成 */
    @Excel(name = "进度]0:编制中，10：发布中，1000：已完成")
    private Long progressCode;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDt;

    /** 有效时间天数 */
    @Excel(name = "有效时间天数")
    private Long validityDay;

    /** 操作员标识 */
    @Excel(name = "操作员标识")
    private Long operatorId;

    /** 操作员编号 */
    @Excel(name = "操作员编号")
    private String operatorCode;

    /** 操作员名称 */
    @Excel(name = "操作员名称")
    private String operatorName;

    private List<Map<String,Object>> list;

    public List<Map<String,Object>> getList() {
        return list;
    }

    public void setList(List<Map<String,Object>> list) {
        this.list = list;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setScore(Double score)
    {
        this.score = score;
    }

    public Double getScore()
    {
        return score;
    }
    public void setStandardScore(Double standardScore)
    {
        this.standardScore = standardScore;
    }

    public Double getStandardScore()
    {
        return standardScore;
    }
    public void setQuestionCount(Long questionCount) 
    {
        this.questionCount = questionCount;
    }

    public Long getQuestionCount() 
    {
        return questionCount;
    }
    public void setCreateDt(Date createDt) 
    {
        this.createDt = createDt;
    }

    public Date getCreateDt() 
    {
        return createDt;
    }
    public void setProgressCode(Long progressCode) 
    {
        this.progressCode = progressCode;
    }

    public Long getProgressCode() 
    {
        return progressCode;
    }
    public void setPublishDt(Date publishDt) 
    {
        this.publishDt = publishDt;
    }

    public Date getPublishDt() 
    {
        return publishDt;
    }
    public void setValidityDay(Long validityDay) 
    {
        this.validityDay = validityDay;
    }

    public Long getValidityDay() 
    {
        return validityDay;
    }
    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }
    public void setOperatorCode(String operatorCode) 
    {
        this.operatorCode = operatorCode;
    }

    public String getOperatorCode() 
    {
        return operatorCode;
    }
    public void setOperatorName(String operatorName) 
    {
        this.operatorName = operatorName;
    }

    public String getOperatorName() 
    {
        return operatorName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("score", getScore())
            .append("standardScore", getStandardScore())
            .append("questionCount", getQuestionCount())
            .append("createDt", getCreateDt())
            .append("progressCode", getProgressCode())
            .append("publishDt", getPublishDt())
            .append("validityDay", getValidityDay())
            .append("operatorId", getOperatorId())
            .append("operatorCode", getOperatorCode())
            .append("operatorName", getOperatorName())
            .toString();
    }
}
